package ihm.models.events;

import java.util.EventObject;

import characters.Statistics;
/**
 * This event is use to notify that  the character's statistics changed.
 * @author Baptiste Legrand & Benjamin Orman
 * @version 1.0
 */
public class StatChangedEvent
extends EventObject {
  /**
   * Serial Version Value.
   */
  private static final long serialVersionUID = 1L;

  /**
   * The new statistics.
   */
  private Statistics newStat;
  /**
   * Create an event used to notify that the query has been changed and
   * the new statistics is given in parameter.
   * @param source - The source of this event.
   * @param newStatistics - The new statistics.
   */
  public StatChangedEvent(Object source, Statistics newStatistics)
  {
    super(source);
    this.newStat = newStatistics;
  }
  /**
   * Getter returning the new character's statistics.
   * @return Statistics - The new statistics.
   */
  public Statistics getNewStatistics()
  {
    return this.newStat;
  }
}
